package com.syh.jn.scm.infrastructure.repository.model.base;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_BUSINESS_ENTITY_INVOICE_INFO")
@EqualsAndHashCode(callSuper = true)
public class BusinessEntityInvoiceInfoModel extends SuperBusinessModel {
  /**
   * 公司名称
   */
  @Column(name = "COMPANY_NAME", columnDefinition = "varchar(100) COMMENT '公司名称'")
  private String companyName;
  /**
   * 银行
   */
  @Column(name = "BANK_NAME", columnDefinition = "varchar(50) COMMENT '银行'")
  private String bankName;
  /**
   * 银行账户
   */
  @Column(name = "BANK_ACCOUNT", columnDefinition = "varchar(50) COMMENT '银行账户'")
  private String bankAccount;
  /**
   * 纳税人识别号
   */
  @Column(name = "TAXPAYER_CODE", columnDefinition = "varchar(50) COMMENT '纳税人识别号'")
  private String taxpayerCode;
  /**
   * 收票人
   */
  @Column(name = "TICKET_COLLECTOR", columnDefinition = "varchar(50) COMMENT '收票人'")
  private String ticketCollector;
  /**
   * 联系电话
   */
  @Column(name = "MOBILE_PHONE", columnDefinition = "varchar(50) COMMENT '联系电话'")
  private String mobilePhone;
  /**
   * 地址省 市 区
   */
  @Column(name = "AREA", columnDefinition = "varchar(300) COMMENT '地址省 市 区 使用[广东省,广州市,海珠区]格式保存'")
  private String area;
  /**
   * 收票地址
   */
  @Column(name = "ADDRESS", columnDefinition = "varchar(300) COMMENT '单位地址'")
  private String address;
  /**
   * 所属终端系统:DOWNSTREAM,OPERATION,SUPPLIER,UPSTREAM
   */
  @Column(name = "TERMINAL_TYPE", columnDefinition = "varchar(50) COMMENT '所属终端'")
  private String terminalType;
}
